﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using IQKS.AWP.DataAccessLayer;
using IQKS.AWP.BusinessObject;

namespace IQKS.AWP.BusinessAccessLayer
{
    public class AssessorCalendarBAL
    {
        public object SetAssessorCalendar(AssessorCalendarBO param)
        {
            try
            {
                return new AssessorCalendarDAL().SetAssessorCalendar(param);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }



        public object DeleteAssessorCalendarByID(long lgAssessorCalendarDetailID, int intIsActive)
        {
            try
            {
                return new AssessorCalendarDAL().DeleteAssessorCalendarByID(lgAssessorCalendarDetailID, intIsActive);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }
        public object CheckAssessorAvailabilityByDate(AssessorCalendarBO param)
        {
            try
            {
                return new AssessorCalendarDAL().CheckAssessorAvailabilityByDate(param);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }
        public DataSet GetAssessorCalendarDetails(AssessorCalendarBO param)
        {
            try
            {
                return new AssessorCalendarDAL().GetAssessorCalendarDetails(param);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }

        public object CheckAssessorAvailabilityUpdate(AssessorCalendarBO param)
        {
            try
            {
                return new AssessorCalendarDAL().CheckAssessorAvailabilityUpdate(param);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }


    }
}
